<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>题库分析</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
    <style>
        .chart-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 20px;
        }
        .chart {
            margin-bottom: 30px;
        }
    </style>
</head>
<body>
    <div class="container">
        <nav class="navbar navbar-expand-lg navbar-light bg-light">
            <a class="navbar-brand" href="{{ url_for('home') }}">分析结果页面</a>
            <div class="collapse navbar-collapse">
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('teacher_dashboard') }}">返回老师面板</a>
                    </li>
                </ul>
            </div>
        </nav>

        <div class="chart-container">
            <div class="chart">
                <h4 class="text-center">题目类型比例</h4>
                <img src="data:image/png;base64,{{ pie_chart }}" class="img-fluid" alt="题目类型比例">
            </div>
            <div class="chart">
                <h4 class="text-center">各知识点题目数量</h4>
                <img src="data:image/png;base64,{{ knowledge_point_chart }}" class="img-fluid" alt="各知识点题目数量">
            </div>
            <div class="chart">
                <h4 class="text-center">不同难度问题分布</h4>
                <img src="data:image/png;base64,{{ difficulty_chart }}" class="img-fluid" alt="不同难度问题分布">
            </div>
        </div>
    </div>
</body>
</html>
